<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>嘀咕~ 谁在这里？</title>
<meta name="description" content="爱嘀咕,微博" />
<meta name="keywords" content="weibo,微博"/>
<link rel="stylesheet" href="/static/layui/css/layui.css?t=1" type="text/css" media="screen" />
<link rel="stylesheet" href="/static/index/css/main.css?35" type="text/css" media="screen" />
<link class="dplayer-css" rel="stylesheet" href="/static/dplayer/css/DPlayer.min.css">
<script src="/static/index/js/jquery-1.8.3.min.js"></script>
<script src="/static/layui/layui.js?4"></script>
<script src="/static/dplayer/js/hls.light.min.js"></script>
<script src="/static/dplayer/js/DPlayer.min.js"></script>
<script language="javascript" type="text/javascript" src="/static/index/js/common.js?18"></script>
<script language="javascript" type="text/javascript" src="/static/common/js/index.js?19"></script>
<script language="javascript" type="text/javascript" src="/static/common/js/common.js?18"></script>
<script language="javascript" type="text/javascript" src="/static/index/js/video.js?11"></script>

{if $userInfo}
<script>
    document.addEventListener('DOMContentLoaded', function() {
        // 从 localStorage 中读取保存的主题
        // var selectedTheme = localStorage.getItem('selectedTheme');
		var selectedTheme = '{:getThemeInfo($userInfo['theme'])[0]}';
        if (selectedTheme) {
            if (selectedTheme === 'default') {
                document.documentElement.className = '';
            } else {
                document.documentElement.className = selectedTheme;
            }
            var header = document.getElementById('header');
            if (header) {
                if (selectedTheme === 'default') {
                    header.className = '';
                } else {
                    header.className = selectedTheme;
                }
            }
        }
    });
</script>
{/if}

</head>

<body>

{if $userInfo && getThemeInfo($userInfo['theme'])[1]}
<div class="background-blur" style="background: url({:getThemeInfo($userInfo['theme'])[1]}) no-repeat 0 0;background-attachment:fixed;background-size:100% 100%;height:auto;min-height: 100%"></div>
{else}
<div class="background-blur"></div>
{/if}

<div class="container">
<div class="header">
	<!-- <div class="logo"><a href="/"><img src="/static/index/images/logo.gif" alt="logo"/></a></div> -->
	<div class="navigation">
		<ul>
			{if $userInfo}
				{if $userInfo.isSiteUser}
					<li><a href="{:url('/'.$loginUserInfo.blog.'/')}">我的首页</a></li>
					<li><a href="{:url('/'.$loginUserInfo.blog.'/own/')}">我的微博</a></li>
					<li><a href="/square/">广场</a></li>
					<li><a href="/collect/">我的收藏</a></li>
					<li><a href="/topic/">话题</a></li>
					<li><a href="/search/">搜索</a></li>
					<li>
						<a href="/tools/">小应用</a>
						{if $chatRemind['chatRemind']}
						<span class="layui-badge-dot layui-bg-blue" id="checkRemind"></span>
						{else} 
						<span class="layui-badge-dot layui-bg-blue" id="checkRemind" style="display: none;"></span>
						{/if}
					</li>
					<!-- <li><a href="javascript:;" data-title="我的云盘" data-url="/cloud/show/" onclick="showFrameHtml(this, '80%', '80%')">网盘</a></li> -->
					<!-- <li><a href="javascript:;" data-title="在线影院" data-url="/movie" onclick="showFrameHtml(this, '100%', '100%')">影院</a></li> -->
					<li><a href="/setting/">设置</a></li>
					<li><a href="/tools/nav/">导航</a></li>
				{else}
					<li><a href="{:url('/'.$userInfo.blog.'/')}">{$userInfo.sex|getPerson}的首页</a></li>
					<li><a href="{:url('/'.$userInfo.blog.'/own/')}">{$userInfo.sex|getPerson}的微博</a></li>
					<li><a href="/square/">广场</a></li>
					<!-- <li><a href="{:url('/'.$userInfo.blog.'/collect/')}">{$userInfo.sex|getPerson}的收藏</a></li> -->
					<li><a href="javascript:;" data-title="私信" data-url="/chat/private/{$userInfo.uid}" onclick="showFrameHtml(this, '60%', '70%')">私信{$userInfo.sex|getPerson}</a></li>
					<li><a href="{:url('/'.$loginUserInfo.blog.'/')}">我的首页</a></li>
					<!-- <li><a href="/topic/">话题</a></li> -->
				{/if}
				{if "WINADMIN" == 111}
				<li><a href="">站点管理</a></li>
				{/if}
				<li><a href="{:url('/logout/')}">退出</a></li>
			{else} 
				<li><a href="/">首页</a></li>
				<li><a href="/tools/bmi">体重计算器</a></li>
				<li><a href="/tools/reader">文本阅读器</a></li>
				<li><a href="{:url('/login/')}">登录</a></li>

			{/if}
 		</ul>
		
	</div>
	<div class="clear"></div>
</div>